<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!doctype html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
    <title>CCRM扫描出库</title>
    <style type="text/css">
        *{
            margin: 0;
            padding: 0;
            font-family: "Microsoft YaHei";
        }
        html, body{
            font-size: 100%;
            width: 100%;
            height: 100%;
        }
        .content {
            width: 60%;
            height: 100%;
            margin: 0 auto;
            padding: 10% 0;
            box-sizing: border-box;
        }

        .content a {
            position: relative;
            display: block;
            width: 100%;
            text-decoration: none;
            color: #fff;
            text-align: center;
        }

        .content a span{
            position: absolute;
            width: 100%;
            text-align: center;
            top: 50%;
            left: 0;
            transform: translateY(-50%);
            -webkit-transform: translateY(-50%);
        }
        .product {
            height: 45%;
            margin-bottom: 20%;
            background-color: #18ca6c;
        }

        .out {
            height: 45%;
            background-color: #ff9201;
        }
    </style>
    <%@ include file="jsapi-header.jsp"%>
    <script type="text/javascript">
        dd.ready(function() {
            dd.biz.navigation.setRight({show: false});
        });
        //扫描快递单号
        function scanExpressNum(){
            dd.biz.util.scan({
                type: "barCode",//type为qrCode或者barCode
                onSuccess: function(data) {
                    window.location.href = "${gPath}/clmp/dingtalk/mobility/productOutput/info?express_num="+data.text;
                }
            });
        }
    </script>
</head>
<body>
<div class="content">
    <shiro:hasPermission name="/clmp/dingtalk/mobility/productOutput/info">
        <a class="product" href="javascript: scanExpressNum()"><span>产品出库</span></a>
    </shiro:hasPermission>
    <shiro:hasPermission name="/clmp/dingtalk/mobility/productOutput/info">
        <a class="out" href="${gPath}/view/dingtalk/mobility/ProductOutput-list.jsp"><span>出库查询</span></a>
    </shiro:hasPermission>
</div>
</body>
</html>